package creational.factory.sampleFactory;

/**
 * 简单工厂模式
 */
public class Main {

    public static void main(String[] args) {
        System.out.println(FruitCreator.factory("apple"));
        System.out.println("---");
        System.out.println(FruitCreator.factory("grape"));
        System.out.println("---");
        System.out.println(FruitCreator.factory("banana"));

    }
}
